import React from "react";
import {connect} from "react-redux";

const Footer = (props) => {
    if (!props.visible){
        return null;
    }
    return (
        <div className="footer">
            <label>Copyright © 2021-2022</label>
            <p>
                {/*eslint-disable-next-line*/}
                <a href="#">问题咨询联系：1217537393@qq.com</a>
            </p>
            {/*eslint-disable-next-line*/}
            <a href="#" target="_blank">
                Just Game 分享生活中的热爱
            </a>
        </div>
    )
}
const mapState = (state) => {
    return {
        visible: state.getIn(['header', 'visible']),
    }
}
export default connect(mapState,null)(Footer);
